import { Global, Module } from "@nestjs/common";
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { TypeOrmModule } from "@nestjs/typeorm";
import { User } from "@/modules/user/entities/user.entity";
import { Role } from "@/modules/role/entities/role.entity";
import { Permission } from "@/modules/permission/entities/permission.entity";
@Global()
@Module({
  imports: [TypeOrmModule.forFeature([User,Role,Permission])],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService],
})
export class UserModule {}
